package com.itheima_01;

import java.io.FileOutputStream;
import java.io.IOException;

public class OutputStreamDemo01 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day11_demo//abc.txt",true);
       /* fos.write(97);
        fos.write(98);
        fos.write(98);
        byte[] bytes = {45,46,47,48,49};
        fos.write(bytes);*/
        String str = "sgbjkfhdj";
        String str1 = "\r\n";
        byte[] bytes1 = str.getBytes();
        byte[] bytes2 = str1.getBytes();
        fos.write(bytes1);
        fos.write(bytes2);


        fos.close();
    }
}
